/*************************************************************************
	> File Name: test3.cc
	> Author: H.M. Lau
	> Mail: hm.lau@outlook.com
	> Created Time: 2023/09/19 13:54
 ************************************************************************/

#include <iostream>
#include <sys/types.h>
#include <signal.h>

void Usage(std::string proc)
{
    std::cout << "Usage:\r\n\t" << proc << " signumber processid" << std::endl;
}

int main(int argc, char *argv[])
{
    if (argc != 3) {
        Usage(argv[0]);
        exit(1);
    }
    int signumber = atoi(argv[1]);
    int procid = atoi(argv[2]);
    kill(procid, signumber);
    return 0;
}
